import React from "react";
import { Route, Redirect, Switch } from "react-router-dom";
import Login from "./view/Login";
import Manage from "@/view/Manage";
import "antd/dist/antd.css";
import Home from "@/view/manage/Home"

function App(props) {
  // console.log('App.props',props);
  return (
    <div
      id="app"
      style={{
        height: "100%",
      }}
    >
      {/* 路由类型:hash或history */}
      <Switch>
        <Route path="/login" component={Login} />
        <Route path="/manage" component={Manage} />
        <Redirect exact from="/" to="/login" />
        <Route path="/404" render={() => <div>你访问的页面不存在</div>} />
        <Redirect from="*" to="/404" />
      </Switch>
    </div>
  );
}

export default App;
